.login-container {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.background-video {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.welcome {
  height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 5%;
}

.container {
  align-self: stretch;
  width: 448px;
  background-color: white;
  padding-top: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo {
  width: 220px;
  height: auto;
  margin-bottom: 20px;
}

.greet {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 320px;
  text-align: center;
}

.login-form {
  width: 320px;
}

.mb-0 {
  margin-bottom: 0 !important;
  font-size: 16px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.88);
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.secondary-text {
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
  margin: 8px 0 0 0;
}

/* 租户选择相关样式 */
.tenant-card {
  width: 100%;
  max-width: 400px;
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tenant-list {
  margin-bottom: 16px;
}

.list-item {
  margin-bottom: 8px;
  border-bottom: solid rgb(225, 225, 225) 0.5px;
}

.list-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.tenant-button {
  margin-bottom: 8px !important;
  width: 100% !important;
  height: 40px !important;
  font-size: 16px !important;
  border-radius: 6px !important;
}

.back-button {
  margin-top: 16px !important;
  width: 100% !important;
  height: 40px !important;
  font-size: 16px !important;
  border-radius: 6px !important;
}

/* 登录按钮样式 */
.login-button {
  height: 40px !important;
  font-size: 16px !important;
  border-radius: 6px !important;
  font-weight: 400 !important;
}

/* 输入框样式 */
.login-form .ant-input-affix-wrapper,
.login-form .ant-input {
  height: 40px !important;
  border-radius: 6px !important;
  font-size: 16px !important;
}

.login-form .ant-input-affix-wrapper .ant-input {
  height: auto !important;
}

/* 按钮样式统一 */
.ant-btn-primary {
  background-color: #1677ff !important;
  border-color: #1677ff !important;
}

.ant-btn-primary:hover {
  background-color: #4096ff !important;
  border-color: #4096ff !important;
}

.ant-btn-primary:focus {
  background-color: #1677ff !important;
  border-color: #1677ff !important;
}

/* 分割线样式 */
.ant-divider-horizontal.ant-divider-with-text {
  margin: 16px 0;
}

.ant-divider-inner-text {
  padding: 0 16px;
}

/* 登录提示样式 */
.login-tips {
  margin-top: 24px;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
}

.login-tips p {
  margin: 4px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .welcome {
    justify-content: center;
    padding: 20px;
    align-items: flex-start;
    padding-top: 10vh;
  }
  
  .container {
    width: 100%;
    max-width: 400px;
    padding: 40px 20px;
    align-self: flex-start;
  }
  
  .greet,
  .login-form {
    width: 100%;
  }
  
  .logo {
    width: 180px;
  }

  .tenant-card {
    max-width: 350px;
    padding: 20px;
  }

  .tenant-button,
  .back-button {
    height: 44px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .welcome {
    padding: 15px;
    padding-top: 8vh;
  }

  .container {
    padding: 30px 16px;
    width: calc(100% - 30px);
  }
  
  .logo {
    width: 140px;
    margin-bottom: 16px;
  }
  
  .greet h2 {
    font-size: 20px !important;
    margin-bottom: 8px !important;
  }

  .secondary-text {
    font-size: 13px;
  }

  .login-form .ant-input-affix-wrapper,
  .login-form .ant-input {
    height: 44px !important;
    font-size: 16px !important;
  }

  .login-button {
    height: 44px !important;
    font-size: 16px !important;
  }

  .tenant-card {
    max-width: 320px;
    padding: 16px;
  }

  .login-tips {
    font-size: 12px;
    margin-top: 16px;
  }
}

/* 确保视频在所有设备上正确显示 */
@media (max-aspect-ratio: 16/9) {
  .background-video {
    width: auto;
    height: 100%;
  }
}

@media (min-aspect-ratio: 16/9) {
  .background-video {
    width: 100%;
    height: auto;
  }
}